<div class="div_form">
<div class="admin-left-menu">
    <h2>Knowledge bases</h2>
    <a href="index.php?m=manage_solution" <?if($a=='index'):?>class="selected"<?endif?>>View solutions</a> 
    <a href="index.php?m=manage_solution&a=create" <?if($a=='create'):?>class="selected"<?endif?>>Create new solution</a> 

</div>
     
<div class="admin-left-menu">
    <h2>Category</h2>
    <?foreach ($postsl as $pl):?>
    <a href="index.php?m=manage_solution&a=index&catid=<?=$pl['category_id']?>" <?if($catid==$pl['category_id']):?>class="selected"<?endif?>><?=$pl['category_name']?> (<?=$pl['total']?>)</a>
    <?endforeach?>
</div>

         
</div>